package com.sunshine.spring.beans.annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: WeiHong
 * @Date: 2017/3/20 10:14
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("/spring/annotation.xml");
        Customer customer = (Customer) context.getBean("customer");
        System.out.println(customer.toString());
    }
}
